#include <HAL/deviceInterface.h>

#include <boost/property_tree/ptree.hpp>

#include<string>

namespace ECG
{
namespace HAL
{
    Device::Device(boost::property_tree::ptree hwConf,std::string devPath,std::string var,std::string devName):\
        hwConf(hwConf),devPath(devPath),outVar(var),devName(devName)
    {
    }

    Device::Device()
    {

    }

    Device::~Device()
    {

    }

    void Device::setHwConf(boost::property_tree::ptree hwConf)
    {
        this->hwConf = hwConf;
    }

    void Device::setDevPath(std::string path)
    {
        devPath = path;
    }

    void Device::setOutVar(std::string var)
    {
        outVar = var;
    }

    void Device::setDevName(std::string name)
    {
        devName = name;
    }

    boost::property_tree::ptree& Device::getHwConf()
    {
        return hwConf;
    }

    std::string& Device::getDevPath()
    {
        return devPath;
    }

    std::string& Device::getOutVar()
    {
        return outVar;
    }

    std::string& Device::getDevName()
    {
        return devName;
    }

    std::string& Device::getFilterID()
    {
        return filterID;
    }

    void Device::setFilterID(std::string ID)
    {
        filterID = ID;
    } 

    void Device::setDriver(DriverPtr drv)
    {
       driver = drv; 
    }


}
}

